package model;

import java.util.ArrayList;
import java.util.List;

public final class PersonGroup extends PersonBasis {

	List<Person> mPersons;

	public void addPersonToGroup(Person person) {
		mPersons.add(person);
	}

	public void removePersonFromGroup(Person person) {
		mPersons.remove(person);
	}
	
	public boolean isPersonInGroup(Person person) {
		if (mPersons.contains(person)) {
			return true;
		}
		return false;
	}

	public PersonGroup(String name) {
		super(name);
		mPersons = new ArrayList<Person>();
	}

}
